package com.mccken.designpattern.strategy.strategy_02.sub_srategy;

import com.mccken.designpattern.strategy.strategy_02.IPromotionStrategy;

/**
 * 儿童优惠
 * 
 * @program: mccken-collect
 * @description:
 * @author: mccken
 * @create: 2024-01-14 20:34
 **/
public class ChildrenStrategy implements IPromotionStrategy {
	@Override
	public double doPromotion(double price) {
		System.out.println("儿童优惠，打9.5折，再送xxx礼物");
		giveChildrenGift();
		return price * 0.95;
	}

	private void giveChildrenGift() {
		// 处理赠送礼物任务
	}
}
